import java.util.List;

public class Text {

    public static void main(String[] args) {
        OrderBinarryTree orderBinarryTree = new OrderBinarryTree();
        OrderBinarryTree.TreeNode root = orderBinarryTree.createTree("ab##cd##e##");

//        orderBinarryTree.levelOrder(root);
//        orderBinarryTree.levelOrder1(root);

        //List<List<Character>> list = orderBinarryTree.levelOrder2(root);
        List<List<Character>> list1 = orderBinarryTree.levelOrder3(root);
    }

    public static void main2(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree("ab##cd##e##");

        binaryTree.preorderTraversalNor(root);
        binaryTree.inorderTraversalNor(root);

        //List<List<Integer>> list = binaryTree.levelOrder(root);
        //list.forEach(System.out::println);
//        System.out.println(list.toArray());

//        int[] preorder = {3,9,20,15,7};
//        int[] inorder = {9,3,15,20,7};

//        binaryTree.buildTree(preorder,inorder);



    }

    public static void main1(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();

        binaryTree.preorderTraversalNor(root);
        binaryTree.inorderTraversalNor(root);
    }
}
